Write-Only Property (WOP)

Description:

WOP suggests to avoid declaring write-only properties. A write-only property is a property that has only a set accessor. A write-only property should be made either a read-write property by adding a get accessor or converted to a setter method.

Incorrect:

public class Employee {
    public string Name {
        set {
            ...
        }
    }
}

Correct:

public class Employee {
    public string Name {
        get {
            ...
        }

        set {
            ...
        }
    }
}